﻿// See https://aka.ms/new-console-template for more information
using DK.StackCalculator.Demo;

//Console.WriteLine(new StackCalculator().GetExpressionResult("3+6/2+9"));
var exp = new StackCalculatorPostfixExpression().GetInversePolishExpression("1*(2-3)+6");
Console.WriteLine(exp);
Console.WriteLine(new StackCalculatorPostfixExpression().Compute(exp));
//Console.WriteLine(new StackCharsMatching().IsMatching("我超((有啥比))啊"));